<template>
  <div>
    <Authc permissions="trade:settlement:cmb">
      <div>
        <a @click="download">下载</a>
      </div>
    </Authc>
  </div>
</template>
<script>
  import {
    Icon,
    Tooltip,
    Message,
    Modal
  } from "view-design";
  import Authc from "@/components/Authc";
  import { namespace } from "../../Module/reconciliationModule";

  export default {
    props: {
      row: Object
    },
    model: {
      event: ["onEdit"]
    },
    components: {
      Icon,
      Tooltip,
      Message,
      Authc
    },
    data () {
      return {
      };
    },
    created () {
    },
    methods: {
      download() {
        let id = this.$props.row.statement_code;
        console.log(id, '222')
        this.$bus.$emit('actionType', {type: 'edit', id: id });
      }
    }
  };
</script>
<style lang="less">
  .normal-icon-style {
    font-size: 20px !important;
    color: #57a3f3 !important;
  }

  .error-icon-style {
    font-size: 20px !important;
    color: #ff0000 !important;
  }
</style>
